<#assign  p=JspTaglibs["/WEB-INF/tlds/pager.tld"]/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"></meta>
    <title>博客专区 - 有乐窝</title>
    <#include "../include/common.html">
        <link rel="stylesheet" href="${absolutePath}/resource/css/bbs.css"/>
        </head>
<body>
<#include "../include/top.html">
    <div class="main">
        <div class="topic-list-con">
            <div class="topic-item-list">
                <div class="pager"><@p.pager url="" countTotalStr="${result.page.countTotal?c!'0'}"
                    pageStr="${result.page.page?c!'1'}" pageTotalStr="${result.page.pageTotal?c!'1'}">
                </@p.pager>
            </div>
            <#if (result.page.countTotal>0)>
                <#list result.list as item>
                    <div class="topic-item">
                        <div class="user-icon"><a href="${absolutePath}/user/${item.userId}"><img class="lazy-load"
                                                                                                  data-original="${imageDomain}upload/${item.userIcon!''}"/></a>
                        </div>
                        <div class="topic-item-info">
                            <div class="topic-item-title">
                                <a href="${absolutePath}/user/${item.userId}/blog/${item.blogId?c}" class="title">${item.title}</a>
                                <span class="time">${item.showCreateTime!''}</span>
                                <a class="topic-cate-tag"
                                   href="${absolutePath}/user/${item.userId}/blog?categoryId=${item.categoryId!'0'}">${item.categoryName!'全部分类'}</a>
                            </div>
                            <div class="topic-item-summary">${item.summary!''}</div>
                            <#if item.topicImageThumArray??>
                                <div class="image-thum topic-item-images">
                                    <#list item.topicImageThumArray as img>
                                        <a href="javascript:;" class="img"><img class="lazy-load"
                                                                                data-original="${imageDomain}/upload/${img}"></a>
                                        <#if (img_index>=2)>
                                            <#break>
                                        </#if>
                                    </#list>
                                    <div class="clear"></div>
                                </div>
                            </#if>
                            <div class="topic-count-info">
                                <a href="${absolutePath}/user/${item.userId!''}" class="user-info"><i
                                        class="icon icon-user-name"></i><span>${item.userName!''}</span></a>
                                <span class="count"><i class="icon icon-read"></i><span>阅读：${item.readCount!'0'}</span></span>
                                <span class="count"><i
                                        class="icon icon-comment"></i><span>评论：${item.commentCount!'0'}</span></span>
                                <span class="count"><i class="icon icon-like"></i><span>喜欢：${item.likeCount!'0'}</span></span>
                                <span class="count"><i class="icon icon-collection"></i><span>收藏：${item.collectionCount!'0'}</span></span>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </#list>
                <#else>
                    <div class="no-data">没有博客，赶紧抢沙发吧</div>
            </#if>
            <div class="pager"><@p.pager url="" countTotalStr="${result.page.countTotal?c!'0'}"
                pageStr="${result.page.page?c!'1'}" pageTotalStr="${result.page.pageTotal?c!'1'}">
            </@p.pager>
        </div>
    </div>
    </div>
    </div>
    <#include "../include/footer.html">
</body>
</html>
